package com.huiyujinrong.qiangdanbao.activity.my;


import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.huiyujinrong.qiangdanbao.BorrowHelpApp;
import com.huiyujinrong.qiangdanbao.R;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class AboutActivity extends AppCompatActivity{


    @BindView(R.id.toolbar_Title)
    TextView title;
    @BindView(R.id.toolbar_Back)
    RelativeLayout back;


    @BindView(R.id.about_banben)
    TextView banben;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.about);
        ButterKnife.bind(this);
        inSetToolBar();

        banben.setText(BorrowHelpApp.get().getVersion());
    }

    private void inSetToolBar() {
        back.setVisibility(View.VISIBLE);
        title.setText("关于我们");
    }

    @OnClick(R.id.toolbar_Back)
    void onBack() {
        finish();
    }
}
